import { Component, OnInit } from '@angular/core';
import { MyhttpService } from '../../services/myhttp.service';  
@Component({
  selector: 'app-floortwo',
  templateUrl: './floortwo.component.html',
  styleUrls: ['./floortwo.component.css'],
  providers: [MyhttpService],
})
export class FloortwoComponent implements OnInit {
  // shuju=[];
  constructor(private myhttpService:MyhttpService) { }

  ngOnInit() {
  };
   
  // 添加购物车
  addat(allcont){
    console.log(allcont);
    this.myhttpService.addgotocart(allcont);
  }
  data1=[
    {id:"0",img:"../../../assets/images/ad-brand.jpg"},
    {id:"1",img:"../../../assets/images/ad-brand-1.jpg"}
  ];
  data2=[
    {
      id:"0",
      img:"../../../assets/images/commodity.jpg",
      con1:"库存",
      con2:"1000+", 
      con3:"库存：",
      con4:"00000件",
      con5:"生产日期：",
      con6:"2017-09-25",
      con7:"产品包装：",
      con8:"1*24",
      con9:"1",
      con10:"加入购物车",
      con11:"维达细韧150抽三层面巾纸S号三连包优惠",
      con12:"VIP：¥",
      con13:"54.50",
      con14:"/件",
      con15:"¥",
      con16:"54.50",
      con17:"/件"
    },
    {
      id:"1",
      img:"../../../assets/images/commodity.jpg",
      con1:"库存",
      con2:"3421+",
      con3:"库存1：",
      con4:"1250件",
      con5:"生产日期：",
      con6:"2017-09-22",
      con7:"产品包装：",
      con8:"1*26",
      con9:"1",
      con10:"加入购物车",
      con11:"XXXXXXXXXXXXXXXXXXXXXXXXX",
      con12:"VIP：¥",
      con13:"54.50",
      con14:"/件",
      con15:"¥",
      con16:"54.50",
      con17:"/件"
    },
    {
      id:"2",
      img:"../../../assets/images/commodity.jpg",
      con1:"库存",
      con2:"6765+",
      con3:"库存2：",
      con4:"1250件",
      con5:"生产日期：",
      con6:"2017-09-25",
      con7:"产品包装：",
      con8:"1*9",
      con9:"1",
      con10:"加入购物车",
      con11:"YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY",
      con12:"VIP：¥",
      con13:"54.50",
      con14:"/件",
      con15:"¥",
      con16:"54.50",
      con17:"/件"
    },
    {
      id:"3",
      img:"../../../assets/images/commodity.jpg",
      con1:"库存",
      con2:"9099+",
      con3:"库存：",
      con4:"1250件",
      con5:"生产日期：",
      con6:"2017-07-09",
      con7:"产品包装：",
      con8:"1*9",
      con9:"1",
      con10:"加入购物车",
      con11:"商品1商品1商品1商品1商品1商品1商品1商品1",
      con12:"VIP：¥",
      con13:"54.50",
      con14:"/件",
      con15:"¥",
      con16:"54.50",
      con17:"/件"
    },
    {
      id:"4",
      img:"../../../assets/images/commodity.jpg",
      con1:"库存",
      con2:"232+",
      con3:"库存：",
      con4:"1250件",
      con5:"生产日期：",
      con6:"2017-07-09",
      con7:"产品包装：",
      con8:"1*9",
      con9:"1",
      con10:"加入购物车",
      con11:"44444444444444444444444444444444444444444",
      con12:"VIP：¥",
      con13:"54.50",
      con14:"/件",
      con15:"¥",
      con16:"54.50",
      con17:"/件"
    },
    {
      id:"5",
      img:"../../../assets/images/commodity.jpg",
      con1:"库存",
      con2:"232+",
      con3:"库存：",
      con4:"1250件",
      con5:"生产日期：",
      con6:"2017-07-09",
      con7:"产品包装：",
      con8:"1*9",
      con9:"1",
      con10:"加入购物车",
      con11:"dddddddddddddddddddjhujhhhhhftftrrfrtf",
      con12:"VIP：¥",
      con13:"54.50",
      con14:"/件",
      con15:"¥",
      con16:"54.50",
      con17:"/件"
    },
    {
      id:"6",
      img:"../../../assets/images/commodity.jpg",
      con1:"库存",
      con2:"232+",
      con3:"库存：",
      con4:"1250件",
      con5:"生产日期：",
      con6:"2017-07-09",
      con7:"产品包装：",
      con8:"1*9",
      con9:"1",
      con10:"加入购物车",
      con11:"99999999999999999999999999999999999",
      con12:"VIP：¥",
      con13:"54.50",
      con14:"/件",
      con15:"¥",
      con16:"54.50",
      con17:"/件"
    },
    {
      id:"7",
      img:"../../../assets/images/commodity.jpg",
      con1:"库存",
      con2:"232+",
      con3:"库存：",
      con4:"1250件",
      con5:"生产日期：",
      con6:"2017-07-09",
      con7:"产品包装：",
      con8:"1*9",
      con9:"1",
      con10:"加入购物车",
      con11:"ppppppppppppppppppppppppppppppppppp",
      con12:"VIP：¥",
      con13:"54.50",
      con14:"/件",
      con15:"¥",
      con16:"54.50",
      con17:"/件"
    },
  ];

}
